<style type="text/css">
    a{text-decoration: none}
    .licenter{margin-bottom: 10px;text-align: center;}
    .licenter1{margin-bottom: 10px;text-align: center; height: 80px}
</style>
<div class="bao1" style="height: 810px">
    <div class="title_top_sup">Danh sách luật sư</div>
    <div style="padding-top: 20px">
        <ul id="mycarousel2" class="jcarousel-skin-baba">
            <?php
             $produc = Yii::app()->cache->get('produc');
            if ($produc === FALSE) {

            $urlbtnxem = 'http://www.salesmartlink.com/icon/btnxem.PNG';
            $sql = "SELECT `ten`,`logo`,`url` FROM `giaitri` where `flag`=1";
            $dbCommand = Yii::app()->db->createCommand($sql);
            $produc = $dbCommand->queryAll();
            Yii::app()->cache->set('produc',$produc,7200);
            }  
            $dem = count($produc);
            $lan = 0;
            $index = 0;
            if (!empty($produc)) {
                foreach ($produc as $pr) {
                    $lan = $lan + 1;
                    $index = $index + 1;
                    if ($lan == 1) {
                        echo '<li>';
                    }
                    ?>


                    <div class="licenter1">
                        <a href="<?php echo $pr['url']; ?>">
                            <img src="<?php echo Yii::app()->request->baseUrl . '/upload/giaitri/' . $pr['logo']; ?>" width="48" height="48">
                            <div>
                                 <?php echo $pr['ten']; ?>
                            </div>

                        </a>
                    </div>

                    <?php
                    if ($index == $dem) {
                        echo '</li>';
                    } elseif ($lan == 8) {
                        $lan = 0;
                        echo '</li>';
                    }
                }
            }
            ?>
             


        </ul>
    </div>
</div>
